<!-- directive:title NG指令详解 -->
<!-- directive:breadcrumb NG指令详解 -->
<div class="panel-body">
    <div class='panel panel-default'>
        <div class='panel-heading'> ng-switch </div>
        <div class='panel-body'>
            <article class="docs-content">
                <script type="text/xianjs" ui-bs>
                    <div ng-switch="myVar">
                        <div ng-switch-when="runoob">
                            <h1>菜鸟教程</h1>
                            <p>欢迎访问菜鸟教程</p>
                        </div>
                        <div ng-switch-when="google">
                            <h1>Google</h1>
                            <p>欢迎访问Google</p>
                        </div>
                        <div ng-switch-when="taobao">
                            <h1>淘宝</h1>
                            <p>欢迎访问淘宝</p>
                        </div>
                        <div ng-switch-default>
                            <h1>切换</h1>
                            <p>选择不同选项显示对应的值。</p>
                        </div>
                    </div>
                </script>
            </article>
        </div>
    </div>
</div>


